/**
 * 
 */
package cn.ad.server.web.spring.model.adview;

/**
 * Pmp 对象
 * @author Administrator
 */
public class Pmp {

	/**
	 * 拍卖资格的指标，在直接交易
		对象命名，其中 0 =所有投标
		被接受， 1 =投标被限制在规
		定的交易和条款。
	 */
	private int private_auction;
	
	/**
	 * 传达特定的交易
	 */
	private Deal[] deals;
	
	/**
	 * 扩展内容
	 */
	private Object ext;
	
	
	/**
	 * @return the private_auction
	 */
	public int getPrivate_auction() {
		return private_auction;
	}




	/**
	 * @param private_auction the private_auction to set
	 */
	public void setPrivate_auction(int private_auction) {
		this.private_auction = private_auction;
	}




	/**
	 * @return the deals
	 */
	public Deal[] getDeals() {
		return deals;
	}




	/**
	 * @param deals the deals to set
	 */
	public void setDeals(Deal[] deals) {
		this.deals = deals;
	}




	/**
	 * @return the ext
	 */
	public Object getExt() {
		return ext;
	}




	/**
	 * @param ext the ext to set
	 */
	public void setExt(Object ext) {
		this.ext = ext;
	}




	/**
	 * Deal 对象
	 * @author Administrator
	 *
	 */
	public static class Deal{
		
		/**
		 * 竞拍类型
		 * @author Administrator
		 *
		 */
		enum DEAL_AT{
			/**
			 * 最高价格成交
			 */
			HIGTHEST,
			/**
			 * 以次高价格成交
			 */
			SECOND,
			/**
			 * 约定的交易价格成交
			 */
			CONVENTION;
		}
		
		/**
		 * 直接交易的唯一标识
		 */
		private String id;
		
		/**
		 * 底价，数值为 CPM 或 CPC 价格*10000，
		 * 如底价为 CPM 价	格 0.6 元，则取值0.6*10000=6000
		      【 at=2 时忽略该字段】
		 */
		private int bidfloor;
		
		/**
		 * 价格单位，
		 * 取值:	USD,RMB，缺省 RMB
		 */
		private String bidfloorcur;
		
		/**
		 * 竞拍类型
		 */
		private DEAL_AT at;
		
		/**
		 * 允许投标交易白名单， 省略意味着没有限制
		 */
		private String[] wseat;
		
		/**
		 * 允许的广告商域名， 省略意味着不限制广告商。
		 * 例如：[“ adview.com”]
		 */
		private String[] wadomain;
		
		/**
		 * 扩展内容
		 */
		private Object ext;

		/**
		 * @return the id
		 */
		public String getId() {
			return id;
		}

		/**
		 * @param id the id to set
		 */
		public void setId(String id) {
			this.id = id;
		}

		/**
		 * @return the bidfloor
		 */
		public int getBidfloor() {
			return bidfloor;
		}

		/**
		 * @param bidfloor the bidfloor to set
		 */
		public void setBidfloor(int bidfloor) {
			this.bidfloor = bidfloor;
		}

		/**
		 * @return the bidfloorcur
		 */
		public String getBidfloorcur() {
			return bidfloorcur;
		}

		/**
		 * @param bidfloorcur the bidfloorcur to set
		 */
		public void setBidfloorcur(String bidfloorcur) {
			this.bidfloorcur = bidfloorcur;
		}

		/**
		 * @return the at
		 */
		public DEAL_AT getAt() {
			return at;
		}

		/**
		 * @param at the at to set
		 */
		public void setAt(DEAL_AT at) {
			this.at = at;
		}

		/**
		 * @return the wseat
		 */
		public String[] getWseat() {
			return wseat;
		}

		/**
		 * @param wseat the wseat to set
		 */
		public void setWseat(String[] wseat) {
			this.wseat = wseat;
		}

		/**
		 * @return the wadomain
		 */
		public String[] getWadomain() {
			return wadomain;
		}

		/**
		 * @param wadomain the wadomain to set
		 */
		public void setWadomain(String[] wadomain) {
			this.wadomain = wadomain;
		}

		/**
		 * @return the ext
		 */
		public Object getExt() {
			return ext;
		}

		/**
		 * @param ext the ext to set
		 */
		public void setExt(Object ext) {
			this.ext = ext;
		}
	}
}
